package com.itsm.example.statemachine.bo;

import com.itsm.example.audit.pojo.state.AuditState;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.SuperBuilder;

import java.util.Objects;

@Data
//@SuperBuilder
public class ItsmEvent {

    /**
     * code
     */
    private Integer id;
    /**
     * desc
     */
    private String name;
    /**
     * js form
     */
    private String jsForm;
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ItsmEvent s = (ItsmEvent) o;
        return Objects.equals(getId(), s.getId());
    }
    @Override
    public int hashCode() {
        return Objects.hash(getId());
    }

}
